/*
 * @Author: zsc
 * @Date: 2022-06-13 21:56:52
 * @LastEditors: zsc
 * @LastEditTime: 2022-07-19 21:04:25
 * @Description:
 */
/**
 * ======================================
 * 系统管理
 * author: SKY-D
 * file: system.js
 * date: 2022/6/12 13:10
 * ======================================
 */
import Layout from '@/layout'

const pre = 'system'
const router = {
  path: '/' + pre,
  component: Layout,
  redirect: '/system/list',
  name: pre,
  meta: {
    title: '设置',
    icon: 'el-icon-ly-xitong',
    permissions: ['SYSTEM']
  },
  children: [
    {
      path: 'user',
      component: () => import('@/views/system/user'), // Parent router-view
      name: pre + 'user',
      meta: {
        title: '用户列表',
        permissions: ['SYSTEM:ACCOUNT']
      }
    },
    {
      path: 'role',
      component: () => import('@/views/system/role'), // Parent router-view
      name: pre + 'role',
      meta: {
        title: '权限设置',
        permissions: ['SYSTEM:ROLE']
      }
    },
    {
      path: 'wx',
      component: () => import('@/views/system/wx'), // Parent router-view
      // component: () => import('@/views/empty'), // Parent router-view
      name: pre + 'wx',
      meta: {
        title: '微信绑定',
        permissions: ['SYSTEM:WX']
      }
    },
    {
      path: 'list',
      component: () => import('@/views/jurisdiction/list'), // Parent router-view
      name: pre + 'list',
      meta: { title: '辖区设置', permissions: ['REGION'] }
    },
    {
      path: 'config',
      component: () => import('@/views/system/config'), // Parent router-view
      name: pre + 'config',
      meta: {
        title: '其他设置',
        permissions: ['SYSTEM:SETTING']
      }
    }
  ]
}

export default router
